package ds.factcom.view.console.client;

import java.util.Iterator;
import java.util.List;

import ds.factcom.controller.client.ClientController;
import ds.factcom.view.console.BaseConsoleView;

/**
 * 
 * @author Javier De Luca, Maximiliano Herrera, Matias Samblancat
 *
 */
public class ClientDebtorConsoleView extends BaseConsoleView {

	private final ClientController clientController;
	private List<String> listDebtor;
	
	public ClientDebtorConsoleView(ClientController clientController) {
		this.clientController = clientController;
		listDebtor = this.clientController.findClientDebtor();
	}

	public void listClientDebtor() {
		
		if( listDebtor.size() != 0 ){
			for (Iterator<String> iterator = listDebtor.iterator(); iterator.hasNext();) {
				String string = (String) iterator.next();
				System.out.println(string);
			}
		}else{
			System.out.println("Al momento No existen clientes deudores");
		}
	}
}
